package com.alienlab.utils;

import com.alibaba.fastjson.JSONArray;

public class NewsBeanData {
	private String name;
	private String url;
	private String path;
	private JSONArray jsonArray;
	
	public NewsBeanData() {
		super();
	}

	
	public NewsBeanData(String name, String url, JSONArray jsonArray,String path) {
		super();
		jsonArray.add("1");
		this.name = name;
		this.url = url;
		this.jsonArray = jsonArray;
		this.path = path;
	}

	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	public JSONArray getJsonArray() {
		return jsonArray;
	}


	public void setJsonArray(JSONArray jsonArray) {
		this.jsonArray = jsonArray;
	}

	

	@Override
	public String toString() {
		return "NewsBeanData [name=" + name + ", url=" + url + ", path=" + path + ", jsonArray=" + jsonArray + "]";
	}


	public void getData(){
		NewsManage.addTask(this,new NewsUrlCallback());		
	}
	 

}
